import {px2rpx} from "../../../../utils/tool";

Component({
    properties: {
        items:{type:Array,value:[]},
        marginBottom:{
            type:Number, value:0,
            observer(data){
                if (data){
                    this.setData({
                        _marginBottom:px2rpx(data),
                    })
                }
            }
        },
        marginX: {
            type:Number, value:0,
            observer(data){
                if (data){
                    this.setData({
                        _marginX:px2rpx(data),
                    })
                }

            }
        },
        radius:{type:String, value:'fillet'},
        shadow:{type:Number|Boolean, value:0},
        colNum:{type:String, value:'col_1'},
        background:{type:String, value:'none'}
    },
    data: {
        _marginBottom:0,
        _marginX:0,
    },
    methods: {}
});
